package com.pet.server.po;

import java.sql.Timestamp;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Subject entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "subject")
public class Subject implements java.io.Serializable {

	// Fields

	private Integer id;
	private String icoPath;
	private String title;
	private String description;
	private Date createdTime;
	private String state;

	// Constructors

	/** default constructor */
	public Subject() {
	}

	/** minimal constructor */
	public Subject(String icoPath, String title, Timestamp createdTime) {
		this.icoPath = icoPath;
		this.title = title;
		this.createdTime = createdTime;
	}

	/** full constructor */
	public Subject(String icoPath, String title, String description,
			Timestamp createdTime) {
		this.icoPath = icoPath;
		this.title = title;
		this.description = description;
		this.createdTime = createdTime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "ico_path", nullable = false, length = 128)
	public String getIcoPath() {
		return this.icoPath;
	}

	public void setIcoPath(String icoPath) {
		this.icoPath = icoPath;
	}

	@Column(name = "title", nullable = false, length = 64)
	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Column(name = "description", length = 256)
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name = "created_time", nullable = false, length = 0)
	public Date getCreatedTime() {
		return this.createdTime;
	}

	public void setCreatedTime(Date createdTime) {
		this.createdTime = createdTime;
	}
	@Column(name = "state", length = 256)
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	
}